You
add pages to SharePoint sites by creating new pages in document
libraries or new wiki pages in wiki page libraries. In most sites, the
option to create a new page is shown under the Site Action menu as New
Page. Clicking that option usually opens a dialog that asks for the
page’s name and then creates a wiki page.
However, if that option isn’t shown, or if you want to create a page of a different type, open the Create dialog (shown in Figure 1). Figure 1 shows how this dialog looks if you have Microsoft Silverlight installed.
If
you do not have Microsoft Silverlight installed, the Create dialog
shows options to create different types of pages under the Pages and
Sites section, as shown in Figure 2. Choose one of these options to continue.
In either version of the
Create dialog, you find by default either two types of pages in SPF or
three types if the site you are using is running on SharePoint Server
and has the publishing feature activated. The three, as shown in Figures 9.1 and 9.2
are Page, Web Part Page (available on all types of sites), and
Publishing Page (available only on sites running on SharePoint Server
with the publishing feature). Developers and administrators may create
additional types of pages, so you may have more options available to
you. The section “The Differences Between Different Types of Pages,” later in this chapter, explains the difference between the three default types.
The following sections explain the process of creating each type of page.
Tip
Short file name (URL names)
make the best site names. Try to choose a short file name when you
create a page. Some options allow you to specify the file name for the
new page, but even if the interface does not allow you to specify a URL name, you should choose a short name as the page’s
name. You can rename the title for the page later on!
The Differences Between Different Types of Pages
The Page option creates a
blank page with room for text and web parts. This allows you to type
text freely into the page and add components as required (see Figure 3). Other tasks in this chapter explain in detail the difference of how to perform different tasks in the different types of pages.
The Web Part Page option
creates a web part page. This kind of page does not allow you to type
text anywhere in the page but instead requires you to add web parts to
the page in zones that are defined by the page’s layout (see Figure 4). This helps enforce a certain layout for pages in the site.
The Publishing page
option is available only in certain sites with certain features. These
pages are designed to enforce certain layouts on the pages in the site
and therefore are preferred for sites that need strict structure and
consistency between the pages. These pages are usually slightly more
complex versions of wiki pages or web part pages or a mix of the two
(for example, a wiki page with web part zones in certain places). An
example for one of these layouts is the (Article Page) Summary Links
layout. A page based on this layout looks similar to a wiki page but
with additional controls:
A link list on the right of the page
A control to easily change the page’s title
A control to easily change the article date
A control to easily define a byline
A control to set a rollup image (an image that will be displayed by rollup web parts that list what pages are there on the site)
Figure 5 shows an example of such a page using that layout.